    function checkXLSType(ths){
        if (ths.value == "") {
            showDialog("请选择EXCEL");
            return false;
        } else {
            if (!/\.(xls)$/.test(ths.value)) {  
                showDialog("类型必须是.xls");  
                setTimeout(function(){
                      ths.value = ""; 
                },0);
                return false;  
            }
        }
        return true;  
    }
function exportPriceExcel()
{
	//showLoading('正在导出，请稍后...');
	$("#betteryPriceExcelForm").attr("action", "batteryPrice/exportExcel.xls").submit();
	//hideLoading();
}
function toImpPriceExcel()
{
	$.get('batteryPrice/toImpPriceExcel.do', function(html)
	{
		$('#commonDialogDiv').html(html);
		$('#commonDialogDiv').dialog(
		{
			modal : true,
			title : "导入电池价格数据",
			width : 800,
			height : 250,
			buttons :
			{
				'取消' : function()
				{
					$(this).dialog('close');
				}
			},
			beforeClose : function()
			{
			},
			close : function()
			{
				$(this).dialog('destroy');
			}
		});
	});
}